﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="FleetApplicationStatus.aspx.cs" 
EnableEventValidation="false" Inherits="carinsurance_fleet_FleetApplicationStatus" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <title>
        <%=GetGlobalResourceObject("General", "ApplicationFormSummary")%>
        - GG-CRM - กล้วยๆ.com - Teledirect Thailand</title>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cphPageTitle" runat="Server">
    <h1>
        <asp:Label runat="server" Text="<%$Resources:General,ApplicationFormSummary%>" ID="lblPageName"></asp:Label></h1>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label runat="server" Text="<%$Resources:General,LangOption%>" Visible="false"
        ID="lblLangOption" />
    <div class="bc2">
        <asp:Label runat="server" ID="lblSiteLocation" Text="You are here : " CssClass="bclist" />
        <asp:SiteMapPath SiteMapProvider="SiteUserSiteMapProvider" ID="smpProvider" runat="server"
            PathSeparator=" : ">
            <PathSeparatorStyle CssClass="bcarrow" />
            <CurrentNodeStyle CssClass="bclist" />
            <NodeStyle CssClass="bclink" />
            <RootNodeStyle CssClass="bclink" />
        </asp:SiteMapPath>
        <div class="clear">
        </div>
    </div>
    <div id="divSearch" runat="server">
        <div class="topdisplay pb10">
            <table width="100%" border="1" cellpadding="10" cellspacing="10" class="flattable">
                <tr>
                    <td width="120">
                        <%=GetGlobalResourceObject("CarInsurance", "ReportType")%>:
                    </td>
                    <td>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:DropDownList ID="ddlReportType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlReportType_SelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="<%$Resources:General,Monthly%>"></asp:ListItem>
                                    <asp:ListItem Value="1" Selected="True" Text="<%$Resources:General,Daily%>"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="<%$Resources:General,Customize%>"></asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;<asp:Label ID="lblFromDate" runat="server"></asp:Label>
                                <asp:DropDownList ID="ddlDay1" runat="server" ToolTip="Choose Day">
                                    <asp:ListItem Value="01">01</asp:ListItem>
                                    <asp:ListItem Value="02">02</asp:ListItem>
                                    <asp:ListItem Value="03">03</asp:ListItem>
                                    <asp:ListItem Value="04">04</asp:ListItem>
                                    <asp:ListItem Value="05">05</asp:ListItem>
                                    <asp:ListItem Value="06">06</asp:ListItem>
                                    <asp:ListItem Value="07">07</asp:ListItem>
                                    <asp:ListItem Value="08">08</asp:ListItem>
                                    <asp:ListItem Value="09">09</asp:ListItem>
                                    <asp:ListItem Value="10">10</asp:ListItem>
                                    <asp:ListItem Value="11">11</asp:ListItem>
                                    <asp:ListItem Value="12">12</asp:ListItem>
                                    <asp:ListItem Value="13">13</asp:ListItem>
                                    <asp:ListItem Value="14">14</asp:ListItem>
                                    <asp:ListItem Value="15">15</asp:ListItem>
                                    <asp:ListItem Value="16">16</asp:ListItem>
                                    <asp:ListItem Value="17">17</asp:ListItem>
                                    <asp:ListItem Value="18">18</asp:ListItem>
                                    <asp:ListItem Value="19">19</asp:ListItem>
                                    <asp:ListItem Value="20">20</asp:ListItem>
                                    <asp:ListItem Value="21">21</asp:ListItem>
                                    <asp:ListItem Value="22">22</asp:ListItem>
                                    <asp:ListItem Value="23">23</asp:ListItem>
                                    <asp:ListItem Value="24">24</asp:ListItem>
                                    <asp:ListItem Value="25">25</asp:ListItem>
                                    <asp:ListItem Value="26">26</asp:ListItem>
                                    <asp:ListItem Value="27">27</asp:ListItem>
                                    <asp:ListItem Value="28">28</asp:ListItem>
                                    <asp:ListItem Value="29">29</asp:ListItem>
                                    <asp:ListItem Value="30">30</asp:ListItem>
                                    <asp:ListItem Value="31">31</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlMonth1" runat="server">
                                    <asp:ListItem Value="01">Jan</asp:ListItem>
                                    <asp:ListItem Value="02">Feb</asp:ListItem>
                                    <asp:ListItem Value="03">Mar</asp:ListItem>
                                    <asp:ListItem Value="04">Apr</asp:ListItem>
                                    <asp:ListItem Value="05">May</asp:ListItem>
                                    <asp:ListItem Value="06">Jun</asp:ListItem>
                                    <asp:ListItem Value="07">Jul</asp:ListItem>
                                    <asp:ListItem Value="08">Aug</asp:ListItem>
                                    <asp:ListItem Value="09">Sep</asp:ListItem>
                                    <asp:ListItem Value="10">Oct</asp:ListItem>
                                    <asp:ListItem Value="11">Nov</asp:ListItem>
                                    <asp:ListItem Value="12">Dec</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlYear1" runat="server">
                                    <asp:ListItem Value="2010">2010</asp:ListItem>
                                    <asp:ListItem Value="2011">2011</asp:ListItem>
                                    <asp:ListItem Value="2012">2012</asp:ListItem>
                                    <asp:ListItem Value="2013">2013</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;
                                <asp:Label ID="lblToDate" runat="server"></asp:Label>
                                <asp:DropDownList ID="ddlDay2" runat="server" ToolTip="Choose Day">
                                    <asp:ListItem Value="01">01</asp:ListItem>
                                    <asp:ListItem Value="02">02</asp:ListItem>
                                    <asp:ListItem Value="03">03</asp:ListItem>
                                    <asp:ListItem Value="04">04</asp:ListItem>
                                    <asp:ListItem Value="05">05</asp:ListItem>
                                    <asp:ListItem Value="06">06</asp:ListItem>
                                    <asp:ListItem Value="07">07</asp:ListItem>
                                    <asp:ListItem Value="08">08</asp:ListItem>
                                    <asp:ListItem Value="09">09</asp:ListItem>
                                    <asp:ListItem Value="10">10</asp:ListItem>
                                    <asp:ListItem Value="11">11</asp:ListItem>
                                    <asp:ListItem Value="12">12</asp:ListItem>
                                    <asp:ListItem Value="13">13</asp:ListItem>
                                    <asp:ListItem Value="14">14</asp:ListItem>
                                    <asp:ListItem Value="15">15</asp:ListItem>
                                    <asp:ListItem Value="16">16</asp:ListItem>
                                    <asp:ListItem Value="17">17</asp:ListItem>
                                    <asp:ListItem Value="18">18</asp:ListItem>
                                    <asp:ListItem Value="19">19</asp:ListItem>
                                    <asp:ListItem Value="20">20</asp:ListItem>
                                    <asp:ListItem Value="21">21</asp:ListItem>
                                    <asp:ListItem Value="22">22</asp:ListItem>
                                    <asp:ListItem Value="23">23</asp:ListItem>
                                    <asp:ListItem Value="24">24</asp:ListItem>
                                    <asp:ListItem Value="25">25</asp:ListItem>
                                    <asp:ListItem Value="26">26</asp:ListItem>
                                    <asp:ListItem Value="27">27</asp:ListItem>
                                    <asp:ListItem Value="28">28</asp:ListItem>
                                    <asp:ListItem Value="29">29</asp:ListItem>
                                    <asp:ListItem Value="30">30</asp:ListItem>
                                    <asp:ListItem Value="31">31</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlMonth2" runat="server">
                                    <asp:ListItem Value="01">Jan</asp:ListItem>
                                    <asp:ListItem Value="02">Feb</asp:ListItem>
                                    <asp:ListItem Value="03">Mar</asp:ListItem>
                                    <asp:ListItem Value="04">Apr</asp:ListItem>
                                    <asp:ListItem Value="05">May</asp:ListItem>
                                    <asp:ListItem Value="06">Jun</asp:ListItem>
                                    <asp:ListItem Value="07">Jul</asp:ListItem>
                                    <asp:ListItem Value="08">Aug</asp:ListItem>
                                    <asp:ListItem Value="09">Sep</asp:ListItem>
                                    <asp:ListItem Value="10">Oct</asp:ListItem>
                                    <asp:ListItem Value="11">Nov</asp:ListItem>
                                    <asp:ListItem Value="12">Dec</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlYear2" runat="server">
                                    <asp:ListItem Value="2010">2010</asp:ListItem>
                                    <asp:ListItem Value="2011">2011</asp:ListItem>
                                    <asp:ListItem Value="2012">2012</asp:ListItem>
                                    <asp:ListItem Value="2013">2013</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;
                                <%=GetGlobalResourceObject("General", "Status")%>:
                                <asp:DropDownList runat="server" ID="ddlApplicationStatus" Width="120px">
                                    <asp:ListItem Text="<%$Resources:General, All%>" Value="-1" />
                                    <asp:ListItem Text="<%$Resources:General, Completed%>" Value="1" />
                                    <asp:ListItem Text="<%$Resources:General, Pending%>" Selected="True" Value="0" />
                                </asp:DropDownList>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td width="120">
                        <%=GetGlobalResourceObject("General", "ReferenceNo")%>
                        /
                        <%=GetGlobalResourceObject("CarInsurance", "Name")%>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSearch" runat="server" Width="250px" MaxLength="50" />
                        <asp:Button ID="btnSubmit" runat="server" Text="<%$Resources:General,Search%>" OnClick="btnSubmit_Click"
                            CssClass="blueB ml10" />
                        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label runat="server" ID="lblRecordCount" CssClass="red" />
            <asp:Button runat="server" Visible="false" CssClass="greenB ml10" ID="btnPrint" Text="<%$Resources:General,Print%>"
                OnClientClick="javascript:window.print();return false;" />
        </div>
        <div class="toggle">
            <div class="title opened" id="opened1">
                <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                <h6>
                    <asp:Label runat="server" ID="Label5" Text="<%$Resources:General,ApplicationList%>" />
                </h6>
            </div>
            <asp:GridView ID="grvApplication" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                CssClass="sTable" GridLines="None" Width="100%" EmptyDataText="<%$Resources:General,ErrNodata%>"
                OnSelectedIndexChanged="grvApplication_SelectedIndexChanged" DataKeyNames="FleetCarId, RefCEUserID, ProviderCompanyID, QuoteRefNo">
                <Columns>
                    <asp:BoundField DataField="AppTypeDesc" HeaderText="App Type" SortExpression="AppTypeDesc"
                        ItemStyle-Width="120px" ItemStyle-Font-Bold="true" />
                    <asp:BoundField DataField="QuoteRefNo" HeaderText="<%$Resources:CarInsurance,ReferenceNo%>"
                        SortExpression="QuoteRefNo" ItemStyle-Width="70px" />
                    <asp:BoundField DataField="Name" HeaderText="<%$Resources:CarInsurance,Name%>" SortExpression="Name"
                        ItemStyle-Width="120px" />
                    <asp:BoundField DataField="CarPlate" HeaderText="<%$Resources:Proposal,PlateNumber%>"
                        SortExpression="CarPlate" ItemStyle-Width="100px" />
                    <asp:BoundField DataField="PaymentStatus" HeaderText="<%$Resources:General,PaymentStatus%>"
                        SortExpression="PaymentStatus" ItemStyle-Width="80px" ItemStyle-Font-Bold="true"
                        ItemStyle-ForeColor="red" />
                    <asp:BoundField DataField="SendToProviderStatus" HeaderText="<%$Resources:CarInsurance,SendToProvider%>"
                        SortExpression="SendToProviderStatus" ItemStyle-Width="50px" />
                    <asp:BoundField DataField="PolicyIssueStatus" HeaderText="<%$Resources:CarInsurance,PolicyIssue%>"
                        SortExpression="PolicyIssueStatus" ItemStyle-Width="160px" HtmlEncode="false" />
                    <asp:BoundField DataField="MailingStatus" HeaderText="<%$Resources:CarInsurance,Mailing%>"
                        SortExpression="MailingStatus" ItemStyle-Width="120px" HtmlEncode="false" />
                    <asp:BoundField DataField="CompletedStatsus" HeaderText="<%$Resources:CarInsurance,Completed%>"
                        SortExpression="CompletedStatsus" ItemStyle-Width="60px" />
                    <asp:BoundField DataField="ModifiedDate" HeaderText="<%$Resources:General,DateTime%>"
                        SortExpression="ModifiedDate" ItemStyle-Width="50px" DataFormatString="{0:dd/MM/yyyy hh:mm tt}" />
                    <asp:CommandField Visible="true" HeaderText="<%$Resources:CarInsurance,Select%>"
                        SelectText="<%$Resources:CarInsurance,Select%>" ShowSelectButton="true" ItemStyle-Width="50px" />
                </Columns>
                <FooterStyle />
                <PagerStyle />
                <SelectedRowStyle BackColor="ActiveBorder" />
                <HeaderStyle />
                <EditRowStyle />
                <AlternatingRowStyle />
                <RowStyle />
            </asp:GridView>
            <div style="display: none">
                <asp:TextBox ID="txtReportType" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtReportDate1" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtReportDate2" runat="server"></asp:TextBox>
                <asp:TextBox runat="server" ReadOnly="true" ID="txtAgentId"></asp:TextBox>
                <asp:TextBox runat="server" ReadOnly="true" ID="txtCompanyId"></asp:TextBox>
                <asp:Label ID="lblContent" runat="server"></asp:Label>
            </div>
            <div class="clear">
            </div>
        </div>
        <br />
    </div>
    <div id="divSelectedApp" class="toggle" runat="server" visible="false">
        <div class="title opened" id="opened1">
            <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" ID="Label3" Text="Selected Application Summary" />
            </h6>
        </div>
        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
                <asp:GridView ID="grvSelectedApp" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                    CssClass="sTable" GridLines="None" Width="100%" EmptyDataText="<%$Resources:General,ErrNodata%>"
                    DataKeyNames="FleetCarId, RefCEUserID, ProviderCompanyID, QuoteRefNo">
                    <Columns>
                        <asp:BoundField DataField="AppTypeDesc" HeaderText="App Type" SortExpression="AppTypeDesc"
                            ItemStyle-Width="120px" ItemStyle-Font-Bold="true" />
                        <asp:BoundField DataField="QuoteRefNo" HeaderText="<%$Resources:CarInsurance,ReferenceNo%>"
                            SortExpression="QuoteRefNo" ItemStyle-Width="80px" />
                        <asp:BoundField DataField="CustomerName" HeaderText="<%$Resources:CarInsurance,Name%>"
                            SortExpression="CustomerName" ItemStyle-Width="120px" />
                        <asp:BoundField DataField="CarPlate" HeaderText="Car Plate" SortExpression="CarPlate"
                            ItemStyle-Width="120px" />
                        <asp:BoundField DataField="PaymentStatusDESC" HeaderText="<%$Resources:General,PaymentStatus%>"
                            SortExpression="PaymentStatusDESC" ItemStyle-Width="100px" ItemStyle-Font-Bold="true"
                            ItemStyle-ForeColor="red" />
                        <asp:BoundField DataField="SendToProviderDESC" HeaderText="<%$Resources:CarInsurance,SendToProvider%>"
                            SortExpression="SendToProviderDESC" ItemStyle-Width="100px" />
                        <asp:BoundField DataField="PolicyIssueDesc" HeaderText="<%$Resources:CarInsurance,PolicyIssue%>"
                            SortExpression="PolicyIssueDesc" ItemStyle-Width="160px" />
                        <asp:BoundField DataField="MailingDesc" HeaderText="<%$Resources:CarInsurance,Mailing%>"
                            SortExpression="MailingDesc" ItemStyle-Width="100px" />
                        <asp:BoundField DataField="CompletedDesc" HeaderText="<%$Resources:CarInsurance,Completed%>"
                            SortExpression="CompletedDesc" ItemStyle-Width="50px" />
                        <asp:BoundField DataField="ModifiedDate" HeaderText="<%$Resources:General,DateTime%>"
                            SortExpression="ModifiedDate" ItemStyle-Width="50px" DataFormatString="{0:dd/MM/yyyy hh:mm tt}" />
                    </Columns>
                    <FooterStyle />
                    <PagerStyle />
                    <SelectedRowStyle BackColor="ActiveBorder" />
                    <HeaderStyle />
                    <EditRowStyle />
                    <AlternatingRowStyle />
                    <RowStyle />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div id="divPaymentStatus" runat="server" visible="false">
        <br />
        <asp:Button ID="btnBackToSearch" runat="server" Text="<%$Resources:General,BackToSearch%>"
            Visible="true" CssClass="blueB ml10" OnClick="btnBackToSearch_Click" />
        <asp:Button ID="btnGoToFleetApp" runat="server" Text="<%$Resources:General,NonGGPackageApplication%>"
            Visible="true" CssClass="blueB ml10" OnClick="btnGoToFleetApp_Click" />
        <div class="toggle">
            <div class="title opened" id="opened2">
                <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                <h6>
                    <asp:Label runat="server" ID="lblPaymentSummaryTitle" Text="<%$Resources:General,PaymentSummary%>" />
                </h6>
            </div>
            <asp:GridView ID="grvPaymentStatus" EmptyDataText="No payment trasaction found."
                CssClass="sTable" GridLines="None" Width="100%" runat="server" AutoGenerateColumns="False">
                <Columns>
                    <asp:BoundField DataField="PremiumAmount" HeaderText="<%$Resources:General,PremiumAmount%>"
                        SortExpression="PremiumAmount" ItemStyle-Width="100px" />
                    <asp:BoundField DataField="PaymentAmount" HeaderText="<%$Resources:General,PaymentAmount%>"
                        SortExpression="PaymentAmount" ItemStyle-Width="100px" />
                    <asp:BoundField DataField="RefundAmount" HeaderText="<%$Resources:General,RefundAmount%>"
                        SortExpression="RefundAmount" ItemStyle-Width="100px" />
                    <asp:BoundField DataField="CollectedAmount" HeaderText="<%$Resources:General,CollectedAmount%>"
                        SortExpression="CollectedAmount" ItemStyle-Width="100px" />
                    <asp:BoundField DataField="BalanceAmount" HeaderText="<%$Resources:General,BalanceAmount%>"
                        SortExpression="BalanceAmount" ItemStyle-Width="100px" ItemStyle-Font-Bold="true"
                        ItemStyle-ForeColor="Red" />
                </Columns>
            </asp:GridView>
        </div>
        <div class="toggle">
            <div class="title opened">
                <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                <h6>
                    <asp:Label runat="server" ID="lblPaymentDetailsTitle" Text="<%$Resources:General,PaymentDetails%>" />
                </h6>
            </div>
            <asp:GridView ID="grvPayment" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                Width="100%" EmptyDataText="<%$Resources:General,ErrNodata%>" CssClass="sTable"
                GridLines="None" OnRowDataBound="grvPayment_RowDataBound" DataKeyNames="PaymentId,PaymentOptionId,PaymentTypeId,TransactionType,ApproveType,CardHolder,IssuingBank,CardExpiryMonth,CardExpiryYear,CardType,CVV,PaymentRefNo">
                <Columns>
                    <asp:BoundField DataField="PaymentId" HeaderText="PaymentId" SortExpression="PaymentId"
                        Visible="false" />
                    <asp:BoundField DataField="PaymentType" HeaderText="<%$Resources:CarInsurance,PaymentType%>"
                        SortExpression="PaymentType" ItemStyle-Width="150px" />
                    <asp:BoundField DataField="CreditCardNo" HeaderText="<%$Resources:CarInsurance,CreditCardNo%>"
                        SortExpression="CreditCardNo" ItemStyle-Width="150px" />
                    <asp:BoundField DataField="CollectedAmount" HeaderText="<%$Resources:CarInsurance,Amount%>"
                        SortExpression="CollectedAmount" ItemStyle-Width="100px" />
                    <asp:BoundField DataField="Transaction" HeaderText="<%$Resources:General,PaymentStatus%>"
                        SortExpression="Transaction" ItemStyle-Width="100px" />
                    <asp:BoundField DataField="ModifiedDate" ItemStyle-Width="140px" HeaderText="Date/Time"
                        SortExpression="ModifiedDate" Visible="true" DataFormatString="{0:dd/MMM/yyyy hh:mm tt}" />
                    <asp:BoundField DataField="AgentName" ItemStyle-Width="150px" HeaderText="<%$Resources:General,Broker%>"
                        SortExpression="AgentName" Visible="true" />
                    <asp:BoundField DataField="Approval" HeaderText="<%$Resources:CarInsurance,Approve%>"
                        SortExpression="Approval" ItemStyle-Width="100px" />
                    <asp:CommandField Visible="false" ButtonType="Button" ControlStyle-CssClass="blueB ml10"
                        ItemStyle-HorizontalAlign="Center" HeaderText="<%$Resources:CarInsurance,Select%>"
                        SelectText="<%$Resources:CarInsurance,Approve%>" ShowSelectButton="true" />
                    <asp:BoundField DataField="CardHolder" HeaderText="CardHolder" SortExpression="CardHolder"
                        Visible="false" />
                    <asp:BoundField DataField="IssuingBank" HeaderText="IssuingBank" SortExpression="IssuingBank"
                        Visible="false" />
                    <asp:BoundField DataField="CardExpiryMonth" HeaderText="CardExpiryMonth" SortExpression="CardExpiryMonth"
                        Visible="false" />
                    <asp:BoundField DataField="CardExpiryYear" HeaderText="CardExpiryYear" SortExpression="CardExpiryYear"
                        Visible="false" />
                    <asp:BoundField DataField="CardType" HeaderText="CardType" SortExpression="CardType"
                        Visible="false" />
                    <asp:BoundField DataField="CVV" HeaderText="CVV" SortExpression="CVV" Visible="false" />
                    <asp:BoundField DataField="ApproveType" HeaderText="ApproveType" SortExpression="ApproveType"
                        Visible="false" />
                    <asp:BoundField DataField="IsOnlinePayment" HeaderText="IsOnlinePayment" SortExpression="IsOnlinePayment"
                        Visible="false" />
                </Columns>
                <FooterStyle />
                <PagerStyle />
                <SelectedRowStyle />
                <HeaderStyle />
                <EditRowStyle />
                <AlternatingRowStyle />
                <RowStyle />
            </asp:GridView>
        </div>
        <div style="display: none;">
            <table cellpadding="0" cellspacing="0" border="0" width="85%">
                <tr>
                    <td style="width: 250px;">
                        <asp:Label runat="server" ID="Label8" Text="<%$Resources:Proposal,TotalPremium%>" />
                        <asp:TextBox ID="txtFinalAnnualPremium" runat="server" MaxLength="15" Width="120px"
                            ReadOnly="true" Text="0"></asp:TextBox>
                    </td>
                    <td style="width: 250px;">
                        <asp:Label runat="server" ID="Label25" Text="<%$Resources:CarInsurance,CollectedAmount%>" />
                        <asp:TextBox ID="txtTotalCollectedAmount" runat="server" MaxLength="15" Width="120px"
                            ReadOnly="true" Text="0"></asp:TextBox>
                    </td>
                    <td style="width: 250px;">
                        <asp:Label runat="server" ID="Label31" Text="<%$Resources:CarInsurance,RefundAmount%>" />
                        <asp:TextBox ID="txtTotalRefundAmount" runat="server" MaxLength="15" Width="120px"
                            ReadOnly="true" Text="0"></asp:TextBox>
                    </td>
                    <td style="width: 250px;">
                        <asp:Label runat="server" ID="Label32" Text="<%$Resources:CarInsurance,BalanceAmount%>" />
                        <asp:TextBox ID="txtBalanceAmount" runat="server" MaxLength="15" Width="120px" ReadOnly="true"
                            Text="0"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="toggle" runat="server" id="divSendPaymentReceipt" visible="false">
        <div class="title opened" id="opened5">
            <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
            <h6>
                <%=GetGlobalResourceObject("General", "SendingPaymentReceipt")%>
            </h6>
        </div>
        <div class="form">
            <table cellpadding="3" cellspacing="3" width="100%" class="sTable">
                <tr>
                    <td>
                        <asp:Label ID="lblCustomerNameCaption" Text="<%$Resources:CarInsurance,Name%>" runat="server"></asp:Label>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:Label ID="lblCustomerName" Font-Bold="true" Text="" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label4" Text="<%$Resources:CarInsurance,EmailAddress%>" runat="server"></asp:Label>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <asp:TextBox ID="txtConfirmEmail" runat="server" Width="280px" MaxLength="200" />
                        <asp:RequiredFieldValidator ID="rfvConfirmEmail" Enabled="true" Display="Dynamic"
                            ValidationGroup="sendpaymentreceipt" runat="server" ControlToValidate="txtConfirmEmail"
                            ErrorMessage="*" Text="*" />
                        <asp:RegularExpressionValidator ID="revConfirmEmail" Enabled="true" Display="Dynamic"
                            ValidationGroup="sendpaymentreceipt" runat="server" ControlToValidate="txtConfirmEmail"
                            ErrorMessage="*" Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                    </td>
                    <td>
                        <asp:Button ID="btnSendPaymentReceipt" runat="server" Text="<%$Resources:General,ConfirmEmail%>"
                            Visible="true" OnClick="btnSendPaymentReceipt_Click" CssClass="blueB ml10" OnClientClick="return SendPaymentReceiptConfirm();" />
                    </td>
                    <td>
                        <asp:Button ID="btnPaymentReceiptDownload" runat="server" Text="<%$Resources:General,DownloadReceipt%>"
                            Visible="true" OnClick="btnPaymentReceiptDownload_Click" CssClass="blueB ml10" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                    </td>
                    <td colspan="4">
                        <asp:Label runat="server" Font-Bold="true" ForeColor="Red" ID="lblSendPaymentReceiptMessage" />&nbsp;
                        <asp:Label runat="server" ID="lblPaymentReceiptMessage" Font-Bold="true" ForeColor="Red" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div id="divUploadDocs" class="toggle" runat="server" visible="false">
        <div class="title opened" id="opened3">
            <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" ID="lblUploadDocTitle" Text="<%$Resources:General,UploadDocuments%>" />
            </h6>
        </div>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <asp:GridView ID="grvFileUpload" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                    CssClass="sTable" Width="100%" EmptyDataText="<%$Resources:General,ErrNodata%>"
                    DataKeyNames="FileId,FilePath" GridLines="None" 
                    OnRowDataBound="grvFileUpload_RowDataBound">
                    <Columns>
                        
                            
                        <asp:TemplateField HeaderText="<%$Resources:CarInsurance,FileUploadType%>" ItemStyle-Width="150px">
                            <ItemTemplate>
                                <asp:Label ID="lblPDFFileType" runat="server" Text='<%# Eval("FileType").ToString() %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        
                        
                        <asp:TemplateField HeaderText="<%$Resources:CarInsurance,FileName%>" ItemStyle-Width="250px">
                            <ItemTemplate>
                                <asp:Label ID="lblPDFFileName" runat="server" Text='<%# Eval("FileName").ToString() %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:BoundField DataField="OriginalName" HeaderText="<%$Resources:CarInsurance,OriginalName%>"
                            SortExpression="OriginalName" ItemStyle-Width="350px" />
                        <asp:TemplateField HeaderText="<%$Resources:General,DownlaodPDF%>">
                            <ItemTemplate>
                                <asp:HyperLink ID="hplDownLoad" runat="server" Text="<%$Resources:General,DownlaodPDF%>"
                                    Target="_blank"></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$Resources:General,DownlaodPDF%>" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="lblPath" runat="server" Text='<%# Eval("FilePath").ToString() %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                    </Columns>
                    <FooterStyle />
                    <PagerStyle />
                    <SelectedRowStyle />
                    <HeaderStyle />
                    <EditRowStyle />
                    <AlternatingRowStyle />
                    <RowStyle />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
    </div>
    <div class="toggle" runat="server" id="divUpdateStatus" visible="false">
        <div class="title opened" id="opened4">
            <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" ID="lblUpdateStatusTitle" Text="<%$Resources:General,UpdateStatus%>" />
            </h6>
        </div>
        <div class="form">
            <fieldset class="step">
                <asp:UpdatePanel ID="upnlDetails" runat="server">
                    <ContentTemplate>
                        <div class="formRow">
                            &nbsp;
                            <div class="formRight">
                                <asp:ValidationSummary HeaderText="Opps..,please complete all(*) fields." runat="server"
                                    ValidationGroup="updatestatus" ID="vsUpdateStatus" ShowMessageBox="true" ShowSummary="true" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow">
                            <asp:Label runat="server" ID="Label6" Text="<%$Resources:General,ReferenceNo%>" />
                            <div class="formRight">
                                <asp:Label ID="lblQuoteRefNo" Font-Bold="true" Font-Size="Large" runat="server"></asp:Label>
                                <div style="display: none">
                                    <asp:Label ID="lblTransID" CausesValidation="false" Text="-1" runat="server"></asp:Label>
                                    <asp:Label ID="lblCarID" CausesValidation="false" Text="-1" runat="server"></asp:Label>
                                    <asp:Label ID="lblCustomerID" CausesValidation="false" Text="-1" runat="server"></asp:Label>
                                    <asp:Label ID="lblCarPlate" CausesValidation="false" Text="-1" runat="server"></asp:Label>
                                    <asp:Label ID="lblProviderCompanyID" CausesValidation="false" Text="-1" runat="server"></asp:Label>
                                    <asp:Label ID="lblPaymentStatus" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblPaymentApprovalStatus" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblPaymentBankTransfer" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblPaymentCash" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblPaymentCheckNo" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblPaymentCreditCard" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblPaymentVisa" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblPaymentMaster" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblCustomerAddress1" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblCustomerAddress2" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblCustomerAddress3" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblCarMakeModel" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblTypeOfPolicy" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblSendToProviderStatus" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblPolicyIssuedStatus" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblDocumentUploadStatus" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblMailingStatus" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblCompletedStatus" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                    <asp:Label ID="lblInstallment" CausesValidation="false" Text="0" runat="server"></asp:Label>
                                </div>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow">
                            <asp:Label runat="server" ID="Label10" Text="App Type" />
                            <div class="formRight">
                                <asp:Label runat="server" ID="lblAppTypeDesc" Font-Bold="true" />
                                <asp:Label runat="server" ID="lblAppType" Visible="false" />                             
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow" runat="server" id="divPromo" visible="false">
                            <asp:Label runat="server" ID="Label14" Text="Promotion" />
                            <div class="formRight">
                                <asp:Label runat="server" ID="lblPromotionType" Font-Bold="true" ForeColor="Green" />                             
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow">
                            <asp:Label runat="server" ID="Label2" Text="<%$Resources:General,AppDetails%>" />
                            <div class="formRight">
                                <asp:HyperLink ID="hplExcelDownLoad" Visible="false" runat="server" Target="_blank"
                                    Text="<%$Resources:General,DownlaodExcel%>" CssClass="greebB mr10"></asp:HyperLink>
                                <asp:Button ID="btnExcelDownload" CausesValidation="false" runat="server" Visible="false"
                                    Text="<%$Resources:General,DownlaodExcel%>" OnClick="btnExcelDownload_Click"
                                    CssClass="greebB mr10" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow">
                            <asp:Label runat="server" ID="Label7" Text="<%$Resources:General,TransactionType%>" />
                            <div class="formRight">
                                <asp:DropDownList ID="ddlTransType" CausesValidation="true" runat="server" AutoPostBack="True"
                                    OnSelectedIndexChanged="ddlTransType_SelectedIndexChanged">
                                    
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvTransType" Enabled="true" Display="Dynamic" ValidationGroup="updatestatus"
                                    runat="server" ControlToValidate="ddlTransType" InitialValue="-1" ErrorMessage="Select transaction type."
                                    Text="*" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow" runat="server" id="divProviderEmail">
                            <asp:Label ID="Label11" Text="<%$Resources:CarInsurance,EmailAddress%>" runat="server"></asp:Label>
                            <div class="formRight">
                                <asp:TextBox ID="txtProviderEmail" runat="server" Width="280px" MaxLength="200" />
                                <asp:RequiredFieldValidator ID="rfvProviderEmail" Enabled="true" Display="Dynamic"
                                    ValidationGroup="updatestatus" runat="server" ControlToValidate="txtProviderEmail"
                                    ErrorMessage="*" Text="*" />
                                <asp:RegularExpressionValidator ID="revProviderEmail" Enabled="true" Display="Dynamic"
                                    ValidationGroup="updatestatus" runat="server" ControlToValidate="txtProviderEmail"
                                    ErrorMessage="*" Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div style="display: none;" class="formRow">
                            <asp:Label runat="server" ID="Label1" Text="<%$Resources:General,Status%>" />
                            <div class="formRight">
                                <asp:CheckBox ID="chkStatus" CausesValidation="false" Enabled="false" runat="server" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow" runat="server" id="divTransDate">
                            <asp:Label runat="server" ID="Label9" Text="<%$Resources:General,Date%>" />
                            <div class="formRight">
                                <asp:DropDownList ID="ddlTransDay" runat="server" ToolTip="Choose Day">
                                    <asp:ListItem Value="01">01</asp:ListItem>
                                    <asp:ListItem Value="02">02</asp:ListItem>
                                    <asp:ListItem Value="03">03</asp:ListItem>
                                    <asp:ListItem Value="04">04</asp:ListItem>
                                    <asp:ListItem Value="05">05</asp:ListItem>
                                    <asp:ListItem Value="06">06</asp:ListItem>
                                    <asp:ListItem Value="07">07</asp:ListItem>
                                    <asp:ListItem Value="08">08</asp:ListItem>
                                    <asp:ListItem Value="09">09</asp:ListItem>
                                    <asp:ListItem Value="10">10</asp:ListItem>
                                    <asp:ListItem Value="11">11</asp:ListItem>
                                    <asp:ListItem Value="12">12</asp:ListItem>
                                    <asp:ListItem Value="13">13</asp:ListItem>
                                    <asp:ListItem Value="14">14</asp:ListItem>
                                    <asp:ListItem Value="15">15</asp:ListItem>
                                    <asp:ListItem Value="16">16</asp:ListItem>
                                    <asp:ListItem Value="17">17</asp:ListItem>
                                    <asp:ListItem Value="18">18</asp:ListItem>
                                    <asp:ListItem Value="19">19</asp:ListItem>
                                    <asp:ListItem Value="20">20</asp:ListItem>
                                    <asp:ListItem Value="21">21</asp:ListItem>
                                    <asp:ListItem Value="22">22</asp:ListItem>
                                    <asp:ListItem Value="23">23</asp:ListItem>
                                    <asp:ListItem Value="24">24</asp:ListItem>
                                    <asp:ListItem Value="25">25</asp:ListItem>
                                    <asp:ListItem Value="26">26</asp:ListItem>
                                    <asp:ListItem Value="27">27</asp:ListItem>
                                    <asp:ListItem Value="28">28</asp:ListItem>
                                    <asp:ListItem Value="29">29</asp:ListItem>
                                    <asp:ListItem Value="30">30</asp:ListItem>
                                    <asp:ListItem Value="31">31</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlTransMonth" runat="server">
                                    <asp:ListItem Value="Jan">Jan</asp:ListItem>
                                    <asp:ListItem Value="Feb">Feb</asp:ListItem>
                                    <asp:ListItem Value="Mar">Mar</asp:ListItem>
                                    <asp:ListItem Value="Apr">Apr</asp:ListItem>
                                    <asp:ListItem Value="May">May</asp:ListItem>
                                    <asp:ListItem Value="Jun">Jun</asp:ListItem>
                                    <asp:ListItem Value="Jul">Jul</asp:ListItem>
                                    <asp:ListItem Value="Aug">Aug</asp:ListItem>
                                    <asp:ListItem Value="Sep">Sep</asp:ListItem>
                                    <asp:ListItem Value="Oct">Oct</asp:ListItem>
                                    <asp:ListItem Value="Nov">Nov</asp:ListItem>
                                    <asp:ListItem Value="Dec">Dec</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlTransYear" runat="server">
                                    <asp:ListItem Value="2012">2012</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow" runat="server" id="divGrossPremium" visible="false">
                            <asp:Label runat="server" ID="Label12" Text="<%$Resources:NonGG,GrossPremium%>" />
                            <div class="formRight">
                                <asp:TextBox ID="txtGrossPremium" runat="server" MaxLength="12" Width="120px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvGrossPremium" runat="server" ControlToValidate="txtGrossPremium"
                                    ErrorMessage="Please enter gross premium amount." Text="*" Display="Dynamic"
                                    ValidationGroup="updatestatus"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revGrossPremium" runat="server" ControlToValidate="txtGrossPremium"
                                    ValidationGroup="updatestatus" Text="**" ErrorMessage="Invalid gross premium amount."
                                    ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow" runat="server" id="divCustEmail" visible="false">
                            <asp:Label runat="server" ID="Label13" Text="<%$Resources:CarInsurance,EmailAddress%>" />
                            <div class="formRight">
                                <asp:TextBox ID="txtCustEmail" runat="server" Width="280px" MaxLength="200" />
                                <asp:RequiredFieldValidator ID="rfvCustEmail" Enabled="true" Display="Dynamic" ValidationGroup="updatestatus"
                                    runat="server" ControlToValidate="txtCustEmail" ErrorMessage="*" Text="*" />
                                <asp:RegularExpressionValidator ID="revCustEmail" Enabled="true" Display="Dynamic"
                                    ValidationGroup="updatestatus" runat="server" ControlToValidate="txtCustEmail"
                                    ErrorMessage="*" Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow">
                            <asp:Label runat="server" ID="lblRemark" Text="<%$Resources:NonGG,Remarks%>" />
                            <div class="formRight">
                                <asp:TextBox runat="server" MaxLength="255" CausesValidation="false" TextMode="MultiLine"
                                    Columns="50" Rows="5" Width="450px" ID="txtRemark" />
                                <asp:RequiredFieldValidator ID="rfvRemark" Enabled="true" Display="Dynamic" ValidationGroup="updatestatus"
                                    runat="server" ControlToValidate="txtRemark" ErrorMessage="Please enter some remarks."
                                    Text="*" />
                                <br />
                                <asp:Label runat="server" ID="lblMessage" Font-Bold="true" ForeColor="Red" Text="" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="formRow">
                            &nbsp;
                            <div class="formRight">
                                <asp:Button runat="server" ValidationGroup="updatestatus" ID="btnUpdateStatus" Text="<%$Resources:General,UpdateStatus%>"
                                    CssClass="blueB ml10" OnClick="btnUpdateStatus_Click" OnClientClick="return SubmitConfirm();" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </fieldset>
        </div>
    </div>

    <script type="text/javascript">
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_initializeRequest(InitializeRequest);
        prm.add_endRequest(EndRequest);
        var postBackElement;
        function InitializeRequest(sender, args) {
            if (prm.get_isInAsyncPostBack())
                args.set_cancel(true);
            postBackElement = args.get_postBackElement();
            OnOffUpdateProgress(true);
        }
        var bUpdateStatus = false;
        function OnOffUpdateProgress(onOff) {
            if ($get('<%=ddlTransType.ClientID%>') != null) {
                $get('<%=ddlTransType.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSubmit.ClientID%>') != null) {
                $get('<%=btnSubmit.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnUpdateStatus.ClientID%>') != null) {
                bUpdateStatus = $get('<%=btnUpdateStatus.ClientID%>').disabled;
                $get('<%=btnUpdateStatus.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnGoToFleetApp.ClientID%>') != null) {
                $get('<%=btnGoToFleetApp.ClientID%>').disabled = onOff;
            }

            if ($get('<%=txtRemark.ClientID%>') != null) {
                $get('<%=txtRemark.ClientID%>').disabled = onOff;
            }

            if ($get('<%=grvApplication.ClientID%>') != null) {
                $get('<%=grvApplication.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnPaymentReceiptDownload.ClientID%>') != null) {
                $get('<%=btnPaymentReceiptDownload.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSendPaymentReceipt.ClientID%>') != null) {
                $get('<%=btnSendPaymentReceipt.ClientID%>').disabled = onOff;
            }

            if ($get('<%=lblMessage.ClientID%>') != null) {
                if (onOff) {
                    $get('<%=lblMessage.ClientID%>').innerHTML = 'Processing... please wait';
                }
            }
        }

        function EndRequest(sender, args) {
            OnOffUpdateProgress(false);
            if ($get('<%=btnUpdateStatus.ClientID%>') != null) {
                $get('<%=btnUpdateStatus.ClientID%>').disabled = bUpdateStatus;
            }
        }

        function SendPaymentReceiptConfirm() {
            var _retVal = false;
            _message = "Are you confirm Email and send Payment Receipt now?";
            if (Page_ClientValidate('sendpaymentreceipt')) {
                _retVal = confirm(_message);
            }

            return _retVal;
        }

        function SubmitConfirm() {
            var _retVal = false;
            var _message = "Confirm to SUBMIT?";
            var _selectedValue = document.getElementById('<%=ddlTransType.ClientID%>').value;
            var _uploadDocs = document.getElementById('<%=lblDocumentUploadStatus.ClientID%>').innerHTML;
            var _paymentStatus = document.getElementById('<%=lblPaymentStatus.ClientID%>').innerHTML;
            var _paymentApprovalStatus = document.getElementById('<%=lblPaymentApprovalStatus.ClientID%>').innerHTML;

            if (Page_ClientValidate('updatestatus')) {
                if (_selectedValue >= 200 && _uploadDocs != "1") {
                    _message += "\r\nNo document(s) was uploaded!";
                }

                if (_selectedValue >= 200 && _paymentStatus != "1") {
                    _message += "\r\nPayment(s) is NOT completed yet!";
                }

                if (_selectedValue >= 200 && _paymentApprovalStatus != "1") {
                    _message += "\r\nPayment(s) is NOT approved yet!";
                }

                if (_selectedValue == 200) {
                    _message += "\r\nAll completed details (including uploaded docs) will be sent to provider!";
                }

                //alert(_selectedValue + ' ' + _message);

                _retVal = confirm(_message);
            }

            return _retVal;
        }

    </script>

</asp:Content>
